/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import escom.ipn.modelo.dao.loginDAO;
import escom.ipn.modelo.dto.loginClass;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Daniel
 */
public class loginFacede {
    private Connection cnn;
    private loginDAO dao;
    
    public loginFacede (Connection cnn){
        this.cnn = cnn;
        dao = new loginDAO();
    }
    
    public loginClass leer(loginClass a)
            throws SQLException{
        return dao.loadLogin(a, cnn);
    } 
    
    public void guardar(loginClass a)
            throws SQLException{
         dao.saveLogin(a, cnn);
    } 
}
